<?php
class userViewModel extends viewModel {
    public $table = "user_role";
    public $view = array(
        "user" => array(
            "join_type" => "inner",
            "on" => "user_role.uid = user.uid"
        ),
        "role" => array(
            "join_type" => "inner",
            "on" => "user_role.rid = role.rid"
        )
    );

}

?>
